// 搜索相关的接口
import request from '@/utils/request'

// 获取搜索联想建议
export const SearchSuggest = (q) => {
  return request({
    method: 'GET',
    url: '/v1_0/suggestion',
    params: {
      q,
    },
  })
}

// 获取搜索结果
export const SearchResult = (obj) => {
  return request({
    method: 'GET',
    url: '/v1_0/search',
    params: obj,
  })
}
